import request from '@/utils/request'

// 查询群聊记录列表
export function listChatUserGroupMessage(query) {
  return request({
    url: '/weblog/chatUserGroupMessage/list',
    method: 'get',
    params: query
  })
}

// 查询群聊记录详细
export function getChatUserGroupMessage(id) {
  return request({
    url: '/weblog/chatUserGroupMessage/' + id,
    method: 'get'
  })
}

// 新增群聊记录
export function addChatUserGroupMessage(data) {
  return request({
    url: '/weblog/chatUserGroupMessage',
    method: 'post',
    data: data
  })
}

// 修改群聊记录
export function updateChatUserGroupMessage(data) {
  return request({
    url: '/weblog/chatUserGroupMessage',
    method: 'put',
    data: data
  })
}

// 删除群聊记录
export function delChatUserGroupMessage(id) {
  return request({
    url: '/weblog/chatUserGroupMessage/' + id,
    method: 'delete'
  })
}


export function listGroupMessage(query){
  return request({
    url: '/weblog/chatUserGroupMessage/listGroupMessage',
    method: 'get',
    params: query
  })
}
